package lex.mtd.core;

import java.io.File;

public class DownloadObject implements java.io.Serializable {
	private static final long serialVersionUID = 4015615924127022760L;
	private File directory = null;
	private String fileName = null;
	private int threadLimit = 5;
	private URLSet urlSet = null;

	public DownloadObject() {
		this.urlSet = new URLSet();
	}

	public URLSet getURLSet() {
		return this.urlSet;
	}

	public File getDirectory() {
		return directory;
	}

	public void setDirectory(File directory) {
		this.directory = directory;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String name) {
		this.fileName = name;
	}

	public int getThreadLimit() {
		return threadLimit;
	}

	public void setThreadLimit(int threadCount) {
		this.threadLimit = threadCount;
	}

	public String toString() {
		StringBuilder buf = new StringBuilder();
		buf.append("dir   : ").append(directory);
		buf.append("\nrename: ").append(fileName);
		buf.append("\nURLs  : ").append(urlSet.toString());
		return buf.toString();
	}
}
